<template>
  <el-table-column :prop="col.prop" :label="col.label" align="center" :min-width="col.minWidth ? col.minWidth : ''">
    <template v-if="col.children">
      <column-item v-for="(item, index) in col.children" :key="index" :col="item"></column-item>
    </template>
  </el-table-column>
</template>

<script>
export default {
  name: 'ColumnItem',
  props: {
    col: {
      type: Object,
      default: () => {}
    },
    childrenProp: {
      type: String,
      default: 'children'
    },
    minWidth: {
      type: String
    }
  },
  methods: {
  }
}
</script>

<style lang="scss">

</style>
